﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpPassword.aspx.cs" Inherits="Web.frontpage.SignUp.right.UpPassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../css/SignUp.css" rel="stylesheet" type="text/css" />
    <script src="http://localhost:3320/admin/js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script language="javascript" type="text/ecmascript">
        var checknum = 0;
        function check() {
            if ($("#oldPwd").val() == "") {
                checknum = 0;
                $("#sp_oldpwd").text("不允许为空");
            }
            else {
                checknum = 1;
                $("#sp_oldpwd").text("");
            }
            if ($("#newPwd1").val() == "") {
                checknum = 0;
                $("#sp_newpwd1").text("不允许为空");
            }
            else {
                checknum = 1;
                $("#sp_newpwd1").text("");
            }
            if ($("#newPwd2").val() == "") {
                checknum = 0;
                $("#sp_newpwd2").text("不允许为空");
            }
            else {
                if ($("#newPwd2").val() != $("#newPwd1").val()) {
                    checknum = 0;
                    $("#sp_newpwd2").text("两次密码输入不一致");
                }
                else {
                    checknum = 1;
                    $("#sp_newpwd2").text("");
                }
            }
            if (checknum == "1") {
                return true;
            }
            else
                return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="contentWrap">
	    <!--表格控件 -->
        <div id="widget table-widget">
            <div class="pageTitle">修改密码</div>
            <%--<div style=" float:right; margin-right:5px; text-align: right;">
                <a hrefk="javascript:;" onclick="show_pwd" >明文显示</a>
            </div>--%>
            <div class="pageColumn">
                <dl>
                    <dd>
                         &nbsp;&nbsp;原密码：<input class="txtinput" runat="server" id="oldPwd" type="password" />
                         <span class="error" id="sp_oldpwd"></span>
                    </dd>
                    <dd>
                          &nbsp;&nbsp;新密码：<input class="txtinput" runat="server" id="newPwd1" type="password" />
                          <span id="sp_newpwd1" class="error"></span>
                    </dd>
                    <dd>
                        确认密码：<input class="txtinput" id="newPwd2" runat="server" type="password" />
                        <span id="sp_newpwd2" class="error"></span>
                    </dd>
                    <dd>
                        <asp:Button runat="server" OnClick="SubmitClick"  Text="确认修改"  OnClientClick="return check();"/>
                    </dd>
                </dl>
                
            </div>
        </div>
    </div> 
    </form>
</body>
</html>
